package com.main.by.dao;

import java.util.List;

import com.main.by.entity.bo.AdminLoginBO;
import com.main.by.entity.vo.AdminLoginVO;


public interface AdminDao {
	/**
	 * 根据邮箱获取系统管理员信息
	 * @user Wendel
	 * 2016年1月18日
	 */
	
	public AdminLoginBO getAdminByUserName(String userName) throws Exception;
	
	public boolean addAdmin(AdminLoginVO user) throws Exception;
	//查询所有的管理员
	//修改管理员
	public boolean updateAdminById(AdminLoginVO admin) throws Exception;
	
	public List<AdminLoginVO> findAdmin() throws Exception;
	
	//根据Id查询管理员
	public AdminLoginVO findAdminById(int adminId) throws Exception;
	
	//根据Id查询管理员
	public boolean deleteAdminById(int adminId) throws Exception;
	
	public boolean updateSysUser(AdminLoginBO user, String... fileds) throws Exception;

}
